package com.supor.nfc.lib.common;

import java.io.Serializable;
import java.util.List;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2021, by het, ShenZhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: NfcParam <br>
 * 作者: lei <br>
 * 日期: 2021/7/23 <br>
 */
public class NfcRecipeParam implements Serializable {
    /**
     * 名称
     */
    public String name;
    /**
     * 设备类型
     */
    public String deviceType;
    /**
     * id
     */
    public int id;
    /**
     * 资源图片
     */
    public int imgResource;
    /**
     * 预约时间 min(2byte)
     */
    public long appointmentTime;
    /**
     * 保温温度 ℃(1byte)
     */
    public short keepTemp;
    /**
     * 保温时间 min(2byte)
     */
    public short keepTime;
    /**
     * 高度(气压) km(1byte)
     */
    public short high;
    /**
     * 环境温度 ℃(1byte)
     */
    public short temp;
    /**
     * 环境湿度 %(1byte)
     */
    public short humi;
    /**
     * 显示亮度&声音 档位等级(1byte)
     */
    public short light = 1;
    /**
     * 校验和(1byte)
     */
    public short checksum;

    public List<StepParam> stepParams;

    public NfcRecipeParam() {
    }

    public NfcRecipeParam(String name, int imgResource) {
        this.name = name;
        this.imgResource = imgResource;
    }

    @Override
    public String toString() {
        return "NfcRecipeParam{" +
                "name='" + name + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", id=" + id +
                ", imgResource=" + imgResource +
                ", appointmentTime=" + appointmentTime +
                ", keepTemp=" + keepTemp +
                ", keepTime=" + keepTime +
                ", high=" + high +
                ", temp=" + temp +
                ", humi=" + humi +
                ", light=" + light +
                ", checksum=" + checksum +
                ", stepParams=" + stepParams +
                '}';
    }
}
